Matthias Clasen [Fri, 29 Mar 2019 14:23:45 +0000 (14:23 +0000)]
Merge branch 'cube-spin' into 'master'
stack: Add a cube spin transition
See merge request GNOME/gtk!679
Benjamin Otte [Tue, 5 Mar 2019 19:44:45 +0000 (20:44 +0100)]
stack: Add a cube spin transition
Add a transition to GtkStack that pretends pages
are the sides or a cube, and switch them by
rotating the cube.
Use this transition in widget-factory.
Anders Jonsson [Fri, 29 Mar 2019 10:50:54 +0000 (10:50 +0000)]
Update Swedish translation
(cherry picked from commit
2b768edd43ddcbf9a9bd43cdb5c79b1e5a1495a5)
Benjamin Otte [Fri, 29 Mar 2019 09:19:41 +0000 (10:19 +0100)]
Revert "Bump meson req to 0.50"
This reverts commit
f0845d98a21a7a5c5817d50f2076dd2615e3979b.
The commit breaks CI. CI has more power than meson telling things.
Benjamin Otte [Fri, 29 Mar 2019 08:43:16 +0000 (09:43 +0100)]
build: The private reftest library needs to be shared
Otherwise the module and gtk-reftest will each have their own copy and
that'll mean all symbols - and inhibiting the shutdown - will exist
twice. Not good.
Benjamin Otte [Fri, 29 Mar 2019 07:20:04 +0000 (08:20 +0100)]
reftests: Remove notebook-childproperties test
Notebooks have no child properties anymore.
Benjamin Otte [Fri, 29 Mar 2019 07:15:23 +0000 (08:15 +0100)]
reftests: Fix textview-tags test
The test was timeouting on X11.
I'm still not sure it does what it should do, but at least that
problem's gone.
Benjamin Otte [Fri, 29 Mar 2019 06:55:52 +0000 (07:55 +0100)]
reftests: Fix label-sizing test
Set border, padding and margin to 0, not just padding.
Benjamin Otte [Fri, 29 Mar 2019 04:52:44 +0000 (05:52 +0100)]
reftests: Remove box-packing test
Boxes have no packing flags anymore.
Benjamin Otte [Fri, 29 Mar 2019 04:42:56 +0000 (05:42 +0100)]
reftests: Fix grid-empty-with-spacing test
Widgets are visible by default now, so make sure the ones that should be
invisible are marked as such.
Benjamin Otte [Fri, 29 Mar 2019 04:40:08 +0000 (05:40 +0100)]
reftests: Fix grid-spacing2 test
The expand flag needs to be set on widgets when previously it was a
packing property.
Benjamin Otte [Fri, 29 Mar 2019 04:36:12 +0000 (05:36 +0100)]
picture: Don't cause warnings on load failures
When a file set via gtk_picture_set_file() can't be loaded, just
silently don't load it.
Reftest picture-load-invalid-file added for that case.
Benjamin Otte [Fri, 29 Mar 2019 04:30:24 +0000 (05:30 +0100)]
reftests: Fix image-load-from-file test
- Images are always correctly sized
- Use a GtkPicture for the large file
Benjamin Otte [Fri, 29 Mar 2019 04:17:35 +0000 (05:17 +0100)]
reftests: Fix iconview-empty test
Images have a static size now, use a GtkPicture instead.
Benjamin Otte [Fri, 29 Mar 2019 04:01:33 +0000 (05:01 +0100)]
cssimagelinear: Make gradient offsets stay in [0, 1]
Fixes linear-gradient reftest
Benjamin Otte [Fri, 29 Mar 2019 03:11:11 +0000 (04:11 +0100)]
reftests: Fix shorthand-entry-border test
We weren't setting CSS back to defaults, so the border highlight
transition would be at different stages when the 2 snapshots happened.
Benjamin Otte [Fri, 29 Mar 2019 03:04:27 +0000 (04:04 +0100)]
reftests: Remove style-properties-nth-child test
Style properties don't exist anymore.
Benjamin Otte [Fri, 29 Mar 2019 03:02:34 +0000 (04:02 +0100)]
reftests: Fix statusbar-remove-all test
Benjamin Otte [Fri, 29 Mar 2019 03:00:59 +0000 (04:00 +0100)]
textview: Paint border windows in the right spot
Fixes textview-border-windows reftest
Benjamin Otte [Fri, 29 Mar 2019 02:42:16 +0000 (03:42 +0100)]
Fix textview-margins reftest
Draw something, otherwise the test will timeout
Benjamin Otte [Fri, 29 Mar 2019 02:31:04 +0000 (03:31 +0100)]
headerbar: Duct-tape over the measure mess
Fixes various reftests.
The headerbar needs soeone to redo sizing.
Benjamin Otte [Thu, 28 Mar 2019 23:24:54 +0000 (00:24 +0100)]
reftests: Fix inherit-and-initial test
Run gtk-builder-tool --3to4 over it. As the test cares about the
"initial" and "inherit" CSS keywords, the actual widgets aren't that
important. It's just important to have many of them.
Benjamin Otte [Thu, 28 Mar 2019 23:24:00 +0000 (00:24 +0100)]
textlayout: Allow querying empty areas
This only happens when the textview has no content, but it does happen
now that such a textview gets allocated 0x0 and not 1x1.
Benjamin Otte [Thu, 28 Mar 2019 22:57:00 +0000 (23:57 +0100)]
rendernode: Round pixel colors in color matrix drawing
Fixes symbolic-icon-translucent-color.ui reftest
Benjamin Otte [Thu, 28 Mar 2019 19:44:39 +0000 (20:44 +0100)]
reftests: Remove info-bar-message-types test
- The test doesn't properly test infobars. An infobar is not a box.
- Infobar message types aren't styled anymore.
Benjamin Otte [Thu, 28 Mar 2019 19:33:33 +0000 (20:33 +0100)]
reftests: Fix notebook-tab-position test
The tab-fill child property is gone, don't use it.
Benjamin Otte [Thu, 28 Mar 2019 00:10:16 +0000 (01:10 +0100)]
reftests: Fix icon-style-basics test
Add a type-func to the GThemedIcon and GEmeblemedIcon usages so
GtkBuilder finds them.
Benjamin Otte [Wed, 27 Mar 2019 23:54:49 +0000 (00:54 +0100)]
reftests: Fix css-match-name test
- Replace GtkImage::pixbuf with GtkImage::paintable
- Use a GtkPicture so the sizing is correct
Benjamin Otte [Wed, 27 Mar 2019 23:52:35 +0000 (00:52 +0100)]
reftests: Fix css-match-type test
- Replace GtkImage::pixbuf with GtkImage::paintable
- Use a GtkPicture so the sizing is correct
Benjamin Otte [Wed, 27 Mar 2019 23:39:36 +0000 (00:39 +0100)]
reftests: Fix border-image-excess-size.ui test
The old reftests drew an opaque image, the new image is transparent.
This test drew the reference image as black and the test as transparent
black, and those are now different.
Benjamin Otte [Wed, 27 Mar 2019 23:34:23 +0000 (00:34 +0100)]
reftests: Delete removed tests from testdata
Benjamin Otte [Wed, 27 Mar 2019 23:27:51 +0000 (00:27 +0100)]
reftests: Fix css-currentcolor-alpha.ui test
The test did not draw anything, which fails now.
Benjamin Otte [Wed, 27 Mar 2019 23:24:44 +0000 (00:24 +0100)]
reftests: Fix css-match-class test
- Replace GtkImage::pixbuf with GtkImage::paintable
- Use a GtkPicture so the sizing is correct
Benjamin Otte [Wed, 27 Mar 2019 04:19:42 +0000 (05:19 +0100)]
reftests: Fix background-size-zero test
We were drawing nothing, causing a timeout.
Benjamin Otte [Wed, 27 Mar 2019 04:02:22 +0000 (05:02 +0100)]
reftests: Fix nth-child test
Box children no longer have a "position" child property.
Benjamin Otte [Wed, 27 Mar 2019 03:53:56 +0000 (04:53 +0100)]
reftests: Fix treeview-fixed-height test
Convert -gtk-gradient() to linear-gradient in the CSS.
Benjamin Otte [Wed, 27 Mar 2019 03:52:59 +0000 (04:52 +0100)]
reftests: Actually build a module
Reftests are expecting a module called libreftest.so, so don't build a
static libgtkreftest.a but what they expect.
Benjamin Otte [Wed, 27 Mar 2019 03:36:15 +0000 (04:36 +0100)]
reftests: Fix actionbar test
Boxes have no pack-type anymore.
Benjamin Otte [Wed, 27 Mar 2019 02:55:18 +0000 (03:55 +0100)]
reftests: Fix window-height-for-width test
The dialog's vbox internal child is now called content_area
Benjamin Otte [Wed, 27 Mar 2019 02:46:03 +0000 (03:46 +0100)]
reftests: Fix grid-spacing1 test
Benjamin Otte [Wed, 27 Mar 2019 02:41:13 +0000 (03:41 +0100)]
reftests: Fix unresolvable.ui test
- Make sure we draw something
- Don't use -gtk-gradient() but linear-gradient instead
Benjamin Otte [Wed, 27 Mar 2019 02:41:03 +0000 (03:41 +0100)]
widgetpaintable: Don't emit signals on dispose
Benjamin Otte [Wed, 27 Mar 2019 02:19:05 +0000 (03:19 +0100)]
reftest: Be more careful about snapshotting
Instead of waiting for the first invalidate-contents signal, wait until
we get a render node. This will break spectacularly for reftests not
drawing anything at all, but we just hope that won't happen.
Benjamin Otte [Wed, 27 Mar 2019 01:59:13 +0000 (02:59 +0100)]
reftests: Make meson run every test separately
This way, we don't get an abort once the first test gets a warning.
We also can use meson test to run individual tests.
Unfortunately, only ~60% of tests pass.
Benjamin Otte [Tue, 26 Mar 2019 16:35:26 +0000 (17:35 +0100)]
testsuite: Make reftests work again
Well, the testrunner works again, the tests don't all succeed.
So exclude them from CI.
Benjamin Otte [Tue, 26 Mar 2019 16:09:19 +0000 (17:09 +0100)]
reftests: Remove image-recording-surface test
It's no longer possible to set surfaces on a GtkImage, so we don't need
to test that setting a recording surface works.
Chun-wei Fan [Fri, 29 Mar 2019 08:48:29 +0000 (16:48 +0800)]
gdk/win32/gdkdrag-win32.c: Include math.h
We need that for round().
Chun-wei Fan [Fri, 29 Mar 2019 08:47:31 +0000 (16:47 +0800)]
meson.build: Pull in fallback for PangoFT2 only when needed
On some systems PangoFT2 is optional, so we only use the fallback when
it is being required.
Matthias Clasen [Fri, 29 Mar 2019 00:51:23 +0000 (00:51 +0000)]
Merge branch 'adwaita-radii-fixes-master' into 'master'
Adwaita radii fixes master
See merge request GNOME/gtk!628
Matthias Clasen [Thu, 28 Mar 2019 23:28:05 +0000 (19:28 -0400)]
builder-tool: Don't strip the xml declaration
This is useful for interoperability with other tools.
Matthias Clasen [Thu, 28 Mar 2019 22:55:36 +0000 (18:55 -0400)]
file chooser entry: Fix a crash
The ::focus-out signal signature has changed. Adapt.
Matthias Clasen [Thu, 28 Mar 2019 22:27:42 +0000 (18:27 -0400)]
popover menu: Fix a parameter name mismatch
Matthias Clasen [Thu, 28 Mar 2019 22:27:25 +0000 (18:27 -0400)]
overlay: Remove no-longer-existing api from header
Matthias Clasen [Thu, 28 Mar 2019 22:27:08 +0000 (18:27 -0400)]
gtk: Some documentation cleanups
Matthias Clasen [Thu, 28 Mar 2019 22:08:15 +0000 (18:08 -0400)]
gsk: Fix up docs a bit
Some apis that were either removed or have never
existed were listed for the docs.
Matthias Clasen [Thu, 28 Mar 2019 22:06:00 +0000 (18:06 -0400)]
gsk: Add GskRoundedRect to the docs
Christoph Reiter [Thu, 28 Mar 2019 21:47:18 +0000 (22:47 +0100)]
CI: install meson 0.50
Matthias Clasen [Thu, 28 Mar 2019 21:35:50 +0000 (17:35 -0400)]
Bump meson req to 0.50
meson told me to.
Matthias Clasen [Thu, 28 Mar 2019 21:07:38 +0000 (21:07 +0000)]
Merge branch 'overlay-layout' into 'master'
overlay: Use a layout manager
See merge request GNOME/gtk!677
Matthias Clasen [Thu, 28 Mar 2019 20:35:55 +0000 (16:35 -0400)]
Convert ui files
Run gtk4-builder-tool simplify --3to4 over all ui files.
Matthias Clasen [Thu, 28 Mar 2019 16:37:45 +0000 (12:37 -0400)]
builder-tool: Small refactoring
Introduce a PropKind enum, since the collection of
booleans is getting out of hands.
Matthias Clasen [Thu, 28 Mar 2019 16:21:52 +0000 (12:21 -0400)]
builder-tool: Convert overlay child properties
Matthias Clasen [Thu, 28 Mar 2019 03:47:32 +0000 (23:47 -0400)]
overlay: Use a layout manager
This lets us get rid of the child properties,
by converting them to layout properties.
Piotr Drąg [Thu, 28 Mar 2019 17:58:56 +0000 (18:58 +0100)]
Update POTFILES.in
Matthias Clasen [Thu, 28 Mar 2019 17:41:33 +0000 (17:41 +0000)]
Merge branch 'layout-child-type' into 'master'
Connect LayoutManager to LayoutChild
See merge request GNOME/gtk!678
Emmanuele Bassi [Thu, 28 Mar 2019 17:22:02 +0000 (17:22 +0000)]
Do not leak unapplied layout properties
If the layout manager does not have a GtkLayoutChild, or if we cannot
apply layout properties, we should free them instead of leaking them.
Emmanuele Bassi [Thu, 28 Mar 2019 17:16:57 +0000 (17:16 +0000)]
Add missing handler for <layout> elements in UI files
The layout properties sub-parser needs to handle the parent tag.
Emmanuele Bassi [Thu, 28 Mar 2019 16:58:00 +0000 (16:58 +0000)]
Connect LayoutManager to LayoutChild
If we want to inspect the type of layout properties exposed by a
GtkLayoutManager, we need a way to connect the layout manager type to
the GtkLayoutChild type it creates. In order to do so, we can set the
GtkLayoutChild type on a field of the GtkLayoutManagerClass structure.
Storing the GtkLayoutChild type on the class structure of the layout
manager also allows us to implement a default create_layout_child()
virtual function.
Emmanuele Bassi [Thu, 28 Mar 2019 12:16:53 +0000 (12:16 +0000)]
Add release info to our demo apps
The appstream-util check performed by Flatpak on recent GNOME SDKs has
become more stringent, and now it requires a <release> tag in the
AppData XML file. If we don't have it, the Flatpak bundles of gtk-demo
and gtk-widget-factory will fail on our CI infrastructure.
Emmanuele Bassi [Thu, 28 Mar 2019 11:47:46 +0000 (11:47 +0000)]
Document how to define layout manager properties
Matthias Clasen [Thu, 28 Mar 2019 02:48:03 +0000 (02:48 +0000)]
Merge branch 'gbsneto/install-header' into 'master'
build: Install gtkboxlayout.h
See merge request GNOME/gtk!676
Georges Basile Stavracas Neto [Thu, 28 Mar 2019 02:25:22 +0000 (23:25 -0300)]
boxlayout: Notify orientation changes
This was missing from the initial implementation, and
breaks the tests.
Matthias Clasen [Thu, 28 Mar 2019 02:04:42 +0000 (02:04 +0000)]
Merge branch 'child-properties' into 'master'
Remove some more child properties
See merge request GNOME/gtk!675
Georges Basile Stavracas Neto [Thu, 28 Mar 2019 01:55:07 +0000 (22:55 -0300)]
build: Install gtkboxlayout.h
This is included by gtk.h, and thus required to build.
Matthias Clasen [Thu, 28 Mar 2019 01:28:16 +0000 (21:28 -0400)]
Convert ui files
Run gtk4-builder-tool simplify --3to4 over all ui files.
Matthias Clasen [Thu, 28 Mar 2019 01:23:56 +0000 (21:23 -0400)]
builder-tool: Rewrite paned child properties
Matthias Clasen [Thu, 28 Mar 2019 01:21:48 +0000 (21:21 -0400)]
paned: Replace the child properties
Replace the resize and shrink child properties
by resize-child1/2 and shrink-child1/2 properties.
Matthias Clasen [Thu, 28 Mar 2019 00:14:51 +0000 (00:14 +0000)]
Merge branch 'window-api-cleanup' into 'master'
GtkWindow api cleanup
See merge request GNOME/gtk!674
Matthias Clasen [Thu, 28 Mar 2019 00:03:59 +0000 (20:03 -0400)]
Convert ui files
Run gtk4-builder-tool simplify --3to4 over all ui files.
Matthias Clasen [Thu, 28 Mar 2019 00:03:34 +0000 (20:03 -0400)]
builder-tool: Rewrite toolbar child properties
Matthias Clasen [Thu, 28 Mar 2019 00:02:48 +0000 (20:02 -0400)]
toolbar: Remove the homogeneous and expand child properties
Replace these with GtkToolItem properties homogeneous
and expand-item.
Matthias Clasen [Wed, 27 Mar 2019 22:48:59 +0000 (18:48 -0400)]
win32: Drop set_role
One overlooked (non-)implementation of set_role.
Matthias Clasen [Wed, 27 Mar 2019 22:47:56 +0000 (18:47 -0400)]
win32: Add a missing include
We are using round() now, so include math.h.
Matthias Clasen [Wed, 27 Mar 2019 22:40:40 +0000 (18:40 -0400)]
Convert ui files
Run gtk4-builder-tool simplify --3to4 over all ui files.
Matthias Clasen [Wed, 27 Mar 2019 22:38:29 +0000 (18:38 -0400)]
builder-tool: Rewrite GtkPopoverMenu::submenu
Matthias Clasen [Wed, 27 Mar 2019 22:37:57 +0000 (18:37 -0400)]
popover menu: Drop the submenu child property
We are using the GtkWidget::name property instead.
Matthias Clasen [Wed, 27 Mar 2019 21:52:51 +0000 (17:52 -0400)]
popover menu: Add an api for adding submenus
This is a step towards removing the submenu
child property.
Matthias Clasen [Wed, 27 Mar 2019 21:15:26 +0000 (17:15 -0400)]
gdk: Drop gdk_surface_set_role
This is a very old X session management thing, and you
will be hard-pressed to find a session manager that can
make use of it, and even harder-pressed to find apps
using it to their advantage.
Matthias Clasen [Wed, 27 Mar 2019 21:14:33 +0000 (17:14 -0400)]
gdk: Stop implementing set_role
All but the X implementation of these were
empty anyway. And the X one is just setting
a property.
Matthias Clasen [Wed, 27 Mar 2019 21:03:45 +0000 (17:03 -0400)]
Remove GtkWindow::role
...and the setter/getter for it.
This is a very old X session management thing, and you
will be hard-pressed to find a session manager that can
make use of it, and even harder-pressed to find apps
using it to their advantage.
Matthias Clasen [Wed, 27 Mar 2019 21:28:53 +0000 (17:28 -0400)]
file chooser: Stop setting a role
It does nothing.
Matthias Clasen [Wed, 27 Mar 2019 18:51:04 +0000 (18:51 +0000)]
Merge branch 'fixed-layout' into 'master'
Add GtkFixedLayout
See merge request GNOME/gtk!668
Alexander Larsson [Wed, 27 Mar 2019 18:45:17 +0000 (18:45 +0000)]
Merge branch 'wip/alexl/broadway6' into 'master'
broadway: Use css transforms
See merge request GNOME/gtk!673
Alexander Larsson [Wed, 27 Mar 2019 18:27:16 +0000 (19:27 +0100)]
broadway: Use css transforms
This allows generic transforms nodes to work.
Matthias Clasen [Wed, 27 Mar 2019 18:21:26 +0000 (14:21 -0400)]
migration guide: Improve warp-pointer entry
Mention platform APIs.
Matthias Clasen [Wed, 27 Mar 2019 18:12:01 +0000 (18:12 +0000)]
Merge branch 'pack-type' into 'master'
Drop some more child properties
See merge request GNOME/gtk!672
Matthias Clasen [Wed, 27 Mar 2019 17:52:47 +0000 (13:52 -0400)]
Mention pack-type in the migration guide
Matthias Clasen [Wed, 27 Mar 2019 17:20:18 +0000 (13:20 -0400)]
Convert all ui files
Run gtk4-builder-tool simplify --3to4 over all ui files.
Matthias Clasen [Wed, 27 Mar 2019 17:14:39 +0000 (13:14 -0400)]
builder-tool: Rewrite pack-type
Replace GtkActionBar::pack-type and GtHeaderBar::pack-type
with child types when going from 3 to 4.
Matthias Clasen [Wed, 27 Mar 2019 17:16:07 +0000 (13:16 -0400)]
action bar: Drop pack-type
Drop the pack-type child property. Allow ui
files to direct children by adding a child
type for it.